package com.tang.lts.remoting;

import com.tang.lts.remoting.protocol.RemoteCommand;

import java.util.concurrent.CountDownLatch;

/**
 * @author Tang
 * @classname ResponseFuture
 * @description [ 异步请求应答封装 ]
 * @date 2022/5/27 17:28
 */
public class ResponseFuture {

    private int opaque;
    private AsyncCallback asyncCallback;
    private CountDownLatch countDownLatch = new CountDownLatch(1);
    private RemoteCommand remoteCommand;


    public ResponseFuture(int opaque, AsyncCallback asyncCallback) {
        this.opaque = opaque;
        this.asyncCallback = asyncCallback;
    }
}